package com.ccc3gc.mysystem.mapper;

import com.ccc3gc.mysystem.VO.DeliveryOrderVO;
import com.ccc3gc.mysystem.VO.OrderVO;
import com.ccc3gc.mysystem.VO.ReceiveOrderVO;
import com.ccc3gc.mysystem.VO.SearchParamVO;
import com.ccc3gc.mysystem.bean.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    //查询订单列表
    List<OrderVO> selectOrder(Order order);

    //根据SearchParamVO查询订单
    List<Order> selectOrderListUser(SearchParamVO searchParamVO);
    //根据SearchParamVO查询接单订单
    List<ReceiveOrderVO> selectReceiveOrder(SearchParamVO searchParamVO);
    //根据SearchParamVO查询配送订单
    List<DeliveryOrderVO> selectDeliveryOrder(SearchParamVO searchParamVO);
    //根据订单Id查询订单详情
    OrderVO selectOrderByOrderId(int orderId);
    //新增订单
    int insertOrder(Order order);
    //修改订单信息
    int updateOrder(Order order);
    //根据id删除订单
    int deleteOrderById(int orderId);
    //批量删除
    int deleteOrderByIds(List<Integer> orderIds);
}
